﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test2
{
    class Triangle : Shape
    {
        private double height;
        private double side;
        public Triangle(double height, double side)
        {
            this.height = height;
            this.side = side;
        }
        public double getArea()
        {
            return (double)height * side / 2;
        }
    }
}
